package com.reliable.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.reliable.service.domain.ReliableIpGeoCache;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * IP地理位置结构化缓存Mapper接口
 * 
 * @author ruoyi
 * @date 2025-11-10
 */
@Mapper
public interface ReliableIpGeoCacheMapper extends BaseMapper<ReliableIpGeoCache> {
    
    /**
     * 检查指定IP是否存在
     * 
     * @param ip IP地址
     * @return 存在记录数
     */
    int existsByIp(String ip);
}